package com.itcms.core.repository;

import java.util.Collection;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import com.itcms.common.orm.Limitable;
import com.itcms.core.domain.Information;

public interface InformationDao extends Repository<Information, Integer>{
	public Page<Information> findAll(Specification<Information> spec,
			Pageable pageable);

	public List<Information> findAll(Specification<Information> spec,
			Limitable limitable);

	public Information findOne(Integer id);

	public Information save(Information bean);

	public void delete(Information bean);

}
